<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
  <div class="content">
      

 <?php if(have_posts()): ?>
    <?php while (have_posts()): the_post();?>     
      
       <?php $attr = array ('class' => 'item_image');
     $size = array (150, 150);
     ?>
      <div>
             <div class="singleImg"><?php the_post_thumbnail($size,$attr); ?> </div>
          
          <div class="singleTable"><table class="persist-area simpleCart_shelfItem">
        <thead>
          <tr class="persist-header">
             <th><?php the_title();?></th>
             <th class="product-buy"><a onclick="$('#mes').sticky();"  href="javascript:;" class="item_add"><div class="button orange">Купити</div></a></th>
          </tr>
        </thead>
        <tbody>
            <tr>
             <td>Кілкість</td>
             <td><input type="text" size="1" value="1" class="item_quantity "></td>
          </tr>
          <tr>
             <td>Ціна</td>
             <td class="product-price item_price"><?php echo get_post_meta($post->ID, 'product pric', true) ?> грн.</td>
          </tr>
          <tr>
             <td>Розміри</td>
             <td>20х30х40 ШхВхД</td>
          </tr>
          <tr>
             <td>table</td>
             <td>table1 data3</td>
          </tr>
          <tr>
             <td>table1 data4</td>
             <td>table1 data4</td>
          </tr>
          <tr>
             <td>table1 data5</td>
             <td>table1 data5</td>
          </tr>
          </tbody>
      </table>
           </div>
             <div id="product-description"> <?php the_content()?></div>
      </div>
    <?php endwhile; ?>
<?php endif; ?>
    
    <!-- end .content --></div>
<?php get_footer(); ?>
